package com.bruce.spring.http.client;

import jakarta.servlet.ServletResponseWrapper;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.autoconfigure.observation.web.servlet.WebMvcObservationAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.web.util.pattern.PathPattern;


@SpringBootApplication(exclude = {WebMvcObservationAutoConfiguration.class})
// @SpringBootApplication
public class SpringHttpClientApplication {

    public static void main(String[] args) throws ClassNotFoundException {

        System.setProperty("jdk.httpclient.keepalive.timeout", String.valueOf(60 * 60 * 24));

        Class.forName(ServletResponseWrapper.class.getName());
        Class.forName(PathPattern.PathMatchInfo.class.getName());

        ConfigurableApplicationContext context = SpringApplication.run(SpringHttpClientApplication.class, args);


    }

}
